package com.cc.visitor.controller;

import com.cc.alltype.ResponseResult;
import com.cc.visitor.dao.LogMiniMapper;
import com.cc.visitor.entity.LogMini;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author chanchaw
 * @create 2024-12-05 8:50
 */
@CrossOrigin
@RestController
@RequestMapping("/logMini")
public class LogMiniController {
    @Autowired
    private LogMiniMapper dao;
    @PostMapping("/insert")
    public ResponseResult insert(@RequestBody LogMini logMini){
        return ResponseResult.ok(dao.insertSelective(logMini));
    }
}
